package edu.codink.xq.center.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Dep entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dep")
public class Dep implements java.io.Serializable
{

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer bhbh;
	private String depname;
	private String depbz;

	// Constructors

	/** default constructor */
	public Dep()
	{
	}

	/** minimal constructor */
	public Dep(Integer bhbh)
	{
		this.bhbh = bhbh;
	}

	/** full constructor */
	public Dep(Integer bhbh, String depname, String depbz)
	{
		this.bhbh = bhbh;
		this.depname = depname;
		this.depbz = depbz;
	}

	// Property accessors
	@Id
	@Column(name = "BHBH", unique = true, nullable = false)
	public Integer getBhbh()
	{
		return this.bhbh;
	}

	public void setBhbh(Integer bhbh)
	{
		this.bhbh = bhbh;
	}

	@Column(name = "DEPNAME", length = 100)
	public String getDepname()
	{
		return this.depname;
	}

	public void setDepname(String depname)
	{
		this.depname = depname;
	}

	@Column(name = "DEPBZ", length = 500)
	public String getDepbz()
	{
		return this.depbz;
	}

	public void setDepbz(String depbz)
	{
		this.depbz = depbz;
	}

}